how to solve java end of file